<?php
class Mapper_DbTable_TestModel extends Plus_Model_Model_DbTable_Abstract
{
	protected $_id;
	protected $_name;
	protected $_size;
	
	
	public function __construct(array $options = null)
	{
		$mapperClassName = 'Mapper_DbTable_TestTable';
		parent::__construct($options, $mapperClassName);
		$this	->addVar('_id', 'id_unit', 'Id')
				->addVar('_name', 'name', 'Name')
				->addVar('_size', 'size', 'Size');
	}
	
	public function setId($id)
	{
		$this->_id = (int) $id;
		return $this;
	}
	
	public function getId()
	{
		return $this->_id;
	}
	
	public function setName($name)
	{
		$this->_name = (string) $name;
		return $this;
	}
	
	public function getName()
	{
		return $this->_name;
	}
	
	public function setIsEnabled($isEnabled)
	{
		$this->_isEnabled = (bool) $isEnabled;
		return $this;
	}
	
	public function getIsEnabled()
	{
		return $this->_isEnabled;
	}
}